/**
 * @author Derek
 * @create 2016/12/28
 */
$(function() {
    //初始化获取经销商数据
    getAgency();
     //初始化消费商数据
    getCustomer();
});

/**
 * 获取经销商数据
 */
function getAgency(){
    alert('getAgency-click');
    var param = {};
    ajaxGet("/main/getAgency", param , function(data){
        console.log(data);
        if(data){
            $('#agency_add').html(data.today_add);
            $('#agency_total').html(data.total);
        }
    });
}
/**
 * 获取服务商
 */
function getCustomer(){
    alert('getCustomer-click');
    var param = {};
    ajaxGet("/main/getCustomer", param , function(data){
        console.log(data);
        if(data){
            $('#customer_add').html(data.today_add);
            $('#customer_total').html(data.total);
        }
    });
}

